/**
 * Copyright (C) 2012 The SkyTvOS Project
 * <p/>
 * Version     Date           Author
 * ─────────────────────────────────────
 * 2014-8-6         luwei
 */

package com.tianci.appstore.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.coocaa.x.framework.utils.LogUtils;
import com.tianci.appstore.AppDetailActivity;

public class SkyAppDetailsActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bundle bundle = getIntent().getExtras();
        if (bundle != null) {
            String appId = bundle.getString("appId", "");
            if (appId != null && !appId.equals("")) {
                LogUtils.d("the app id is " + appId);
                Intent intent = new Intent(this, AppDetailActivity.class);
                intent.putExtra("id", appId);
                startActivity(intent);
            }
        }
        finish();
    }
}
